package com.study.demo.disruptor.entity;

import com.lmax.disruptor.EventHandler;

/**
 * 创建消费者类LongEventHandler
 */
public class ConsumerEventHandler implements EventHandler<LongEvent> {

    //onEvent()方法是框架的回调用法
    public void onEvent(LongEvent event, long sequence, boolean endOfBatch) {
        System.out.println("Event.value:" + event.get());
    }
}
